package vip.jc.integration.dynamicwithshardingSphere.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import vip.jc.integration.dynamicwithshardingSphere.dao.entity.MultiSource;

@Mapper
public interface MultiSourceMapper {

    @Select("SELECT * FROM multiSource where id = #{id}")
    public MultiSource selectById(@Param("id") Long id);

    @Insert("INSERT INTO multiSource (id, name) VALUES (#{multiSource.id}, #{multiSource.name})")
    void addMultiSource(@Param("multiSource") MultiSource multiSource);

}
